using Brick;
using DG.Tweening;
using UnityEngine;

namespace Assets.Scripts.GDK
{
	public class gdk_alertLayer : gdk_baseLayer<gdk_alertLayer>
	{
		public override bool isMask()
		{
			return true;
		}

		public virtual void hideAll()
		{
		}

		public override void show(GameObject item)
		{
			gdk_dotween component = item.GetComponent<gdk_dotween>();
			if ((bool)component)
			{
				base.show(item);
				item.transform.localScale = Vector3.zero;
				item.transform.DOScale(1f, 0.2f).SetEase(component.getShowEase()).OnComplete(delegate
				{
				});
			}
			else
			{
				base.show(item);
			}
		}

		public override void hide(GameObject item)
		{
			gdk_dotween component = item.GetComponent<gdk_dotween>();
			if ((bool)component)
			{
				item.transform.DOScale(0f, 0.2f).SetEase(component.getHideEase()).OnComplete(delegate
				{
					base.hide(item);
				});
			}
			else
			{
				base.hide(item);
			}
		}
	}
}
